<?php
namespace App\Services\WechatHandler;

use \EasyWeChat\Kernel\Contracts\EventHandlerInterface;

/**
 * 视频消息处理器
 * @package App\WechatHandler
 */
class VideoMessageHandler implements EventHandlerInterface
{
    /**
     * 消息处理
     * @param null $payload
     */
    public function handle($payload = null)
    {
        //消息异步保存到记录表
        \App\Jobs\WxmsgVideoHandle::dispatch($payload)->onQueue('low');
        return new \EasyWeChat\Kernel\Messages\Video('HvY61hJdy1zWqpHPEGnsgiblmgtgpdUOIvSdOu0FfVq60_aj_U5iR8nligFEUji6', [
            'title' => '视频标题',
            'description' => '视频描述',
        ]);
    }
}